//
//  RGMessagePraiseVC.m
//  RedGrass
//
//  Created by wuyine on 2018/12/6.
//  Copyright © 2018年 hongcaosp. All rights reserved.
//

#import "RGMessagePraiseVC.h"
#import "RGMessagePraiseCell.h"
@interface RGMessagePraiseVC ()
@end

@implementation RGMessagePraiseVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.customNavBar.title = @"赞";
    [self.tableView registerClass:[RGMessagePraiseCell class] forCellReuseIdentifier:@"MessagePraiseCell"];
    self.emptyTitle = @"你还没有被赞哦";
    self.emptyDescription = @"赶快去上传作品吧~";
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.dataList.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    RGMessagePraiseCell *cell= [tableView dequeueReusableCellWithIdentifier:@"MessagePraiseCell"];
    RGMessageContactModel *model = [self.dataList objectAtIndex:indexPath.row];
    cell.model = model;
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 100;
}

#pragma mark - getter
@end
